package cn.admin.common.exceptionInterceptor.exception;

/**
 * @author YJ
 * @DateTime 2023/2/21 14:53
 */
public class ServiceException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private int code;

    /**
     * 错误提示
     */
    private String message;


    public ServiceException(){

    }


    public ServiceException(int code,String message){
        this.code = code;
        this.message = message;
    }



    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
